home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / font / FontStrikeDisposer.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.1 KB  |  51 lines

  1. package sun.font;
  2.  
  3. import sun.java2d.DisposerRecord;
  4.  
  5. class FontStrikeDisposer implements DisposerRecord {
  6.    Font2D font2D;
  7.    FontStrikeDesc desc;
  8.    long[] longGlyphImages;
  9.    int[] intGlyphImages;
  10.    int[][] segIntGlyphImages;
  11.    long[][] segLongGlyphImages;
  12.    long pScalerContext = 0L;
  13.    boolean disposed = false;
  14.    boolean comp = false;
  15.  
  16.    public FontStrikeDisposer(Font2D var1, FontStrikeDesc var2, long var3, int[] var5) {
  17.       this.font2D = var1;
  18.       this.desc = var2;
  19.       this.pScalerContext = var3;
  20.       this.intGlyphImages = var5;
  21.    }
  22.  
  23.    public FontStrikeDisposer(Font2D var1, FontStrikeDesc var2, long var3, long[] var5) {
  24.       this.font2D = var1;
  25.       this.desc = var2;
  26.       this.pScalerContext = var3;
  27.       this.longGlyphImages = var5;
  28.    }
  29.  
  30.    public FontStrikeDisposer(Font2D var1, FontStrikeDesc var2, long var3) {
  31.       this.font2D = var1;
  32.       this.desc = var2;
  33.       this.pScalerContext = var3;
  34.    }
  35.  
  36.    public FontStrikeDisposer(Font2D var1, FontStrikeDesc var2) {
  37.       this.font2D = var1;
  38.       this.desc = var2;
  39.       this.comp = true;
  40.    }
  41.  
  42.    public synchronized void dispose() {
  43.       if (!this.disposed) {
  44.          this.font2D.removeFromCache(this.desc);
  45.          StrikeCache.disposeStrike(this);
  46.          this.disposed = true;
  47.       }
  48.  
  49.    }
  50. }
  51.